package com.ly.system.system.bean.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 通用id入参-dto
 *
 * @author luoyun
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class IdsDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @NotEmpty(message = "id不能为空")
    private String id;

    /**
     * id集合
     */
    @NotEmpty(message = "id集合不能为空")
    private List<String> ids;
}
